<?php echo $this->Html->css('/css/ui-lightness/jquery'); ?>
<div class="sales_header"> 
<table>
	<tr>
		<td width="50px"><?php echo $this->Html->image("sales.png")?></td>
		<td class="sale_title">Sales Register</td>
		<td class="sale_cancel">
		<form action="<?php echo $webroot?>Point_of_sale/edit_item/7" method="post" id="cancel_sale_form">
			<a class="btn" href="javascript:void(0)" id="cancel_sale">Cancel Sale</a>
		</form>
		</td>
	</tr>
</table>
</div>
<div id="register_container">
<?php echo $this->element("salesadd")?>
<script type="text/javascript">
$(document).ready(function(){
	//取消sale
	$("#cancel_sale").click(function(){
		$('#cancel_sale_form').ajaxSubmit({target: "#register_container", beforeSubmit: salesBeforeSubmit, success: salesSuccess});
	});
});
</script>
</div>
